package vns.shared;

import java.io.Serializable;
import java.util.List;

import com.google.appengine.api.datastore.Key;

public class ObjectPropertyDTO implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Key id;
	private String name;
	private boolean summary;
	private boolean list;
	private boolean main;
	private int weight;
	private boolean require;
	private String describe;
	private String optype;
	private String objecttype;
	private boolean readonly;
	private boolean linked;
	private boolean multi;

	private String value;
	private String valueKey;
	private String optypename;
	private String objtypename;
	private List<ObjectDTO> listObjectRelated;
	private List<ObjectValueDTO> listObjectValue;

	public ObjectPropertyDTO() {
	}

	public ObjectPropertyDTO(Key Id, String Name, boolean Summary,
			boolean List, boolean Main, int Weight, boolean Require,
			String Describe, String Optype, String Objecttype,
			boolean IsReadonly, boolean IsLinked, boolean Multi) {
		this();
		setInfo(Id, Name, Summary, List, Main, Weight, Require, Describe,
				Optype, Objecttype, IsReadonly, IsLinked, Multi);
	}

	public void setInfo(Key Id, String Name, boolean Summary, boolean List,
			boolean Main, int Weight, boolean Require, String Describe,
			String Optype, String objecttype, boolean readonly, boolean linked,
			boolean multi) {
		this.id = Id;
		this.name = Name;
		this.summary = Summary;
		this.list = List;
		this.main = Main;
		this.weight = Weight;
		this.require = Require;
		this.describe = Describe;
		this.optype = Optype;
		this.objecttype = objecttype;
		this.readonly = readonly;
		this.linked = linked;
		this.multi = multi;
	}

	public Key getId() {
		return id;
	}

	public void setId(Key Id) {
		this.id = Id;
	}

	public String getOptype() {
		return optype;
	}

	public void setOptype(String optype) {
		this.optype = optype;
	}

	public String getName() {
		return name;
	}

	public void setName(String Name) {
		this.name = Name;
	}

	public boolean getRequire() {
		return require;
	}

	public void setRequire(boolean Require) {
		this.require = Require;
	}

	public String getDescribe() {
		return describe;
	}

	public void setDescribe(String Describe) {
		this.describe = Describe;
	}

	public boolean getSummary() {
		return summary;
	}

	public void setSummary(boolean Summary) {
		this.summary = Summary;
	}

	public boolean getList() {
		return list;
	}

	public void setList(boolean List) {
		this.list = List;
	}

	public boolean getMain() {
		return main;
	}

	public void setMain(boolean Main) {
		this.main = Main;
	}

	public int getWeight() {
		return weight;
	}

	public void setWeight(int Weight) {
		this.weight = Weight;
	}

	public void setObjecttype(String objecttype) {
		this.objecttype = objecttype;
	}

	public String getObjecttype() {
		return objecttype;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public String getValue() {
		return value;
	}

	public void setValueKey(String valueKey) {
		this.valueKey = valueKey;
	}

	public String getValueKey() {
		return valueKey;
	}

	public void setOptypename(String optypename) {
		this.optypename = optypename;
	}

	public String getOptypename() {
		return optypename;
	}

	public void setObjtypename(String objtypename) {
		this.objtypename = objtypename;
	}

	public String getObjtypename() {
		return objtypename;
	}

	public void setlistObjectRelated(List<ObjectDTO> listObjectRelated) {
		this.listObjectRelated = listObjectRelated;
	}

	public List<ObjectDTO> getlistObjectRelated() {
		return listObjectRelated;
	}

	public void setReadonly(boolean readonly) {
		this.readonly = readonly;
	}

	public boolean getReadonly() {
		return readonly;
	}

	public void setLinked(boolean linked) {
		this.linked = linked;
	}

	public boolean getLinked() {
		return linked;
	}

	public void setMulti(boolean multi) {
		this.multi = multi;
	}

	public boolean getMulti() {
		return multi;
	}

	public void setListObjectValue(List<ObjectValueDTO> listObjectValue) {
		this.listObjectValue = listObjectValue;
	}

	public List<ObjectValueDTO> getListObjectValue() {
		return listObjectValue;
	}
}
